package com.atguigu.dao;

import com.atguigu.bean.User;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface UserDao {
//    @Select("select * from user where user_id=#{userId}")
//     User selectUserById(Integer userId);
    User selectUserById(Integer userId);

     List<User> selectBatchUser(Integer[] userIds);

//    User selectUser(@Param("userId")Integer userId,@Param("userName") String userName);

    User selectUser(Integer userId, String userName);



//    @Update("update user set user_name=#{userName},password=#{password} where user_id=#{userId}")
    void updateUser(User inputUser);


}
